<?php
namespace Admin\Controller;
use Think\Controller;
/**
* 俱乐部相关事务
*/
class ClubController extends BaseController
{
	
	public function clublist(){
	   $m = D('Club');
	   $count = $m -> count();
	   $pagesize = 15;
	   $Page = new \Think\Page($count,$pagesize);// 实例化分页类 传入总记录数和每页显示的记录数
	   $list = $m->relation(true)->limit($Page->firstRow.','.$Page->listRows)->select();
	   $Page->setConfig('prev', '上一页');
       $Page->setConfig('next', '下一页');
	   $show = $Page -> show();
	   $this -> assign('clubdata',$list);
	   $this -> assign("page",$show);
	   $this -> display();
	}
}